export interface CategoryType {
  id: string
  name: string
  code: string
  type: 'type' | 'package' | 'brand'
  sort: number
  status: number
  description?: string
  createTime?: string
  discount?: number
  includeTypes?: string[]
  rules?: string
  recommendations?: CategoryRecommendation[]
}

export interface CategoryRecommendation {
  type: string
  quantity: number
  remark: string
}

export interface CategoryQuery {
  type: 'type' | 'package' | 'brand'
  page: number
  pageSize: number
  name?: string
  status?: number
}

export interface CategoryResponse {
  list: CategoryType[]
  total: number
}

export interface FurnitureType {
  id: string
  name: string
  code: string
  type: string
  brand: string
  price: number
  stock: number
  status: number
  description?: string
  createTime?: string
  updateTime?: string
}

export interface PackageType {
  id: string
  name: string
  code: string
  description: string
  originalPrice: number
  discountPrice: number
  discountDesc: string
  items: PackageItem[]
  status: number
  createTime?: string
  updateTime?: string
}

export interface PackageItem {
  id: string
  furnitureId: string
  name: string
  specs: string
  price: number
  quantity: number
}

export interface OrderType {
  id: string
  orderNo: string
  orderType: 'normal' | 'package'
  customerName: string
  phone: string
  address: string
  amount: number
  status: string
  createTime: string
  items: OrderItem[]
  package?: {
    name: string
    description: string
    originalPrice: number
    discountPrice: number
    discountDesc: string
  }
}

export interface OrderItem {
  id: string
  name: string
  specs: string
  price: number
  quantity: number
} 